home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
qlib205.zip
/
QLIB.ZIP
/
TEST
/
ENVIRO.ASM
< prev
next >
Wrap
Assembly Source File
|
1997-01-10
|
335b
|
25 lines
include qlib.inc
include string.inc
include stdio.inc
.code
main proc
mov esi,_environ
@@:
.if ! bptr[esi] ;is this the second NULL?
jmp done
.endif
callp printf,"%s\n",esi
callp strlen,esi
add esi,eax
inc esi ;skip over NULL
jmp @b
done:
callp print,"done\n\n"
ret
main endp
end